package com.example.drangh;

import android.content.Context;

public class DpUtils {
    public static float dpTopx(Context context,int dp){
       float demsity =  context.getResources().getDisplayMetrics().density;
      return demsity*dp+0.5f;
    }
}
